<!--<template>-->
<!--  <h1>hello {{ $filters.sexName(1) }}</h1>-->
<!--  <button @click="handleClick">click</button>-->
<!--  <div>-->
<!--    <h1>hello</h1>-->
<!--    <el-row class="mb-4">-->
<!--      <el-button>Default</el-button>-->
<!--      <el-button type="primary">Primary</el-button>-->
<!--      <el-button type="success">Success</el-button>-->
<!--      <el-button type="info">Info</el-button>-->
<!--      <el-button type="warning">Warning</el-button>-->
<!--      <el-button type="danger">Danger</el-button>-->
<!--    </el-row>-->
<!--    <el-icon :size="100" color="red">-->
<!--      <Edit/>-->
<!--    </el-icon>-->
<!--  </div>-->

<!--  <div>-->
<!--    <h1>{{ count }}</h1>-->
<!--    <button @click="handleClick2">click</button>-->
<!--    <br/>-->
<!--    <h1>{{ $store.test.useTestStore().count }}</h1>-->
<!--    <button @click="$store.test.useTestStore().add">click</button>-->
<!--  </div>-->


<!--</template>-->

<!--<script setup>-->
<!--import {getCurrentInstance} from 'vue';-->

<!--const {proxy} = getCurrentInstance();-->

<!--async function handleClick() {-->
<!--  proxy.submitOk('保存成功');-->
<!--  proxy.submitFail('操作失败');-->
<!--}-->

<!--let useTestStore = proxy.$store.test.useTestStore();-->
<!--let {count} = toRefs(useTestStore); // 响应式-->
<!--let {add} = useTestStore;-->

<!--function handleClick2() {-->
<!--  add();-->
<!--}-->
<!--</script>-->

<!--<style lang="scss" scoped></style>-->

<template>
  <button @click="handleClick">click</button>
  <h1>{{ res }}</h1>
  <h1>{{ typeof res }}</h1>
  <base-no-data>888</base-no-data>
</template>

<script setup>
import { getCurrentInstance } from 'vue';
import BaseNoData from "@/components/Base/BaseNoData.vue";

const { proxy } = getCurrentInstance();
let res = $ref(null);

async function handleClick() {
  res = await proxy.$api.demo.time();
}
</script>

 
<!-- <template>
  <div></div>
</template>
<script setup>
import { getCurrentInstance } from 'vue';
const { proxy } = getCurrentInstance();

</script>
<style lang='scss' scoped></style> -->